<div class="modal-content">
    <div class="modal-header">
        <h4 class="modal-title" >新增</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
    </div>
    <div class="modal-body">
        <div class="container">
            <table cellpadding="10px 5px">
                <tr>
                    <td class="control-label">学年：</td>
                    <td style="width: 500px;">
                        <select class="form-control" ng-options="schoolYear.id as schoolYear.name for schoolYear in schoolYearList" ng-model="form.year_pk">
                            <option value="">==请选择==</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="control-label">学期：</td>
                    <td style="width: 500px;">
                        <select class="form-control" ng-options="schoolTerm.id as schoolTerm.name for schoolTerm in schoolTermList" ng-model="form.term_pk">
                            <option value="">==请选择==</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="control-label">开学日期：</td>
                    <td style="width: 500px;">
                        <input class="form-control datepicker date-picker" readonly="readonly" ng-model="form.start_date" type="text" style="background: #ffffff;">
                    </td>
                </tr>
                <tr>
                    <td class="control-label">放假日期：</td>
                    <td style="width: 500px;">
                        <input class="form-control datepicker date-picker" readonly="readonly" ng-model="form.end_date" type="text" style="background: #ffffff;">
                    </td>
                </tr>
                <tr>
                    <td class="control-label">周数：</td>
                    <td style="width: 500px;">
                        <input class="form-control" ng-model="form.week" type="text" oninput="value=value.replace(/^[^1-9]+|[^0-9]/g, '')">
                    </td>
                </tr>
                <tr>
                    <td class="control-label">总周数：</td>
                    <td style="width: 500px;">
                        <input class="form-control" ng-model="form.sum_week" type="text" oninput="value=value.replace(/^[^1-9]+|[^0-9]/g, '')">
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="modal-footer">
        <button ng-click="save()" type="button" class="btn btn-primary">保存</button>
    </div>
</div>